package com.ruoyi.web.clickhouse.controller;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.clickhouse.domain.ExampleTable;
import com.ruoyi.web.clickhouse.service.IExampleTableService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@Api(tags = "示例表管理（免登录）---测试使用")
@RestController
@RequestMapping("/webs/exampleTable")
public class WebsExampleTableController extends BaseController
{
    @Autowired
    private IExampleTableService service;

    @ApiOperation("获取全部数据")
    @GetMapping("/getAll")
    public AjaxResult getAll()
    {
        List<ExampleTable> list = service.list();
        return AjaxResult.success(list);
    }



}
